package com.neuedu.javase.oo.rewrite;

/***
 * 项目名称:  MyJavaSE 
 * 包：  com.neuedu.javase.oo.rewrite 
 * date:   2025/10/24   10:26  
 * 描述:  
 *  @author : 张金山
 *  作者博客:   https://blog.fulfill.com.cn
 */
public class Father {

    private String name;
    private int age;


    public Father() {
    }

    public Father(String name, int age) {
        this.name = name;
        this.age = age;
    }

    protected   void sayHi(){
        System.out.println(String.format("姓名: "+this.name+" 年龄: "+this.age+""));
    }








}
